    class Prism
   {
      double B;
      double h;
      double p;
   
       public Prism (double B, double h)
      {
         this.B=B;
         this.h=h;
      }
   	
       public Prism (double B, double h, double p)
      {
         this.B=B;
         this.h=h;
         this.p=p;
      }
   
   
       public double getVolume()//for any prism
      {
         return (B * h);
      }
   	
       public double getSurfaceArea() //for any prism
      {
         return (2 * B) + (p * h);
      }
   }